package com.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class News {

  private Integer id;
  private String title;
  private String content;
  private Integer status;
  private Integer staffId;
  @JSONField(format = "yyyy-MM-dd")
  private java.sql.Date createdTime;
  @JSONField(format = "yyyy-MM-dd")
  private java.sql.Date endTime;

  public News() {
  }

  @Override
  public String toString() {
    return "News{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", content='" + content + '\'' +
            ", status=" + status +
            ", staffId=" + staffId +
            ", createdTime=" + createdTime +
            ", endTime=" + endTime +
            '}';
  }

  public News(Integer id, String title, String content, Integer status, Integer staffId, Date createdTime, Date endTime) {
    this.id = id;
    this.title = title;
    this.content = content;
    this.status = status;
    this.staffId = staffId;
    this.createdTime = createdTime;
    this.endTime = endTime;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getStaffId() {
    return staffId;
  }

  public void setStaffId(Integer staffId) {
    this.staffId = staffId;
  }


  public java.sql.Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(java.sql.Date createdTime) {
    this.createdTime = createdTime;
  }


  public java.sql.Date getEndTime() {
    return endTime;
  }

  public void setEndTime(java.sql.Date endTime) {
    this.endTime = endTime;
  }

}
